<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象解构</title>
    <script>
        let user = {
            id: 10086,
            name: "ldh",
            age: 50
        };
        //表示从对象user中解构，对象的解构只能是属性
        //id转换成cid，id不存在了
        let {id: cid, ...other} = user;
        console.log(cid);
        console.log(other);
        console.log(user);

    </script>
</head>
<body>

</body>
</html>